#ifndef BULLET_H
#define BULLET_H
#include <QPainter>
#include <QPixmap>
#include <qmath.h>
class Bullet : public QObject
{
    Q_OBJECT
public:
    Bullet();
    Bullet(double x, double y, double angle);
    bool update();
    void draw (QPainter *painter);
    QPointF locate();
private:
    double m_x,m_y;
    double m_angle;
    QPixmap m_pixmap;
    static const QPixmap picture;
public slots:
    void receiptGeoData (double x, double y, double angle);
};

#endif // BULLET_H
